package hcn.protocol.brandnew.dengji.bingli;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 病历质控整改信息新增-消息请求 - ODS_02100021
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class AddMedicalRecordRectificationRequest extends BaseRequest {

    /**
     * 就诊流水号
     */
    @XmlElement(name = "VisitId")
    private String visitId;
    /**
     * 整改信息列表List
     */
    @XmlElementWrapper(name = "RectificationLists")
    @XmlElement(name = "RectificationList")
    private List<RectificationList> rectificationLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class RectificationItemList {

        /**
         * 整改项目ID
         */
        @XmlElement(name = "RectificationItemId")
        private String rectificationItemId;
        /**
         * 整改项目备注
         */
        @XmlElement(name = "RectificationItemRemark")
        private String rectificationItemRemark;
        /**
         * 整改通知ID
         */
        @XmlElement(name = "RectificationItemNotice")
        private String rectificationItemNotice;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class RectificationList {

        /**
         * 病历名称
         */
        @XmlElement(name = "MedicalRecordName")
        private String medicalRecordName;
        /**
         * 病历编号
         */
        @XmlElement(name = "MedicalRecordId")
        private String medicalRecordId;
        /**
         * 整改项目列表
         */
        @XmlElementWrapper(name = "RectificationItemLists")
        @XmlElement(name = "RectificationItemList")
        private List<RectificationItemList> rectificationItemLists;
    }

}
